package org.example.demo;

import com.example.demo.test.root.Root;
import com.example.demo.test.SpringUtil;
import com.example.demo.test.parm.InClass;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);

        Root root = SpringUtil.app.getBean(Root.class);
        InClass inClass = new InClass();
        inClass.setType(1);
        inClass.setFiltermode(1);
        inClass.setIsDefaultTimeType(true);
        inClass.setTimeType(1);
        root.applyStrategy(inClass);
    }

}
